Repository navigation
Fix documentation errors in Android.App notification types (R110, pass 3) - #1988
Conversation
…s 3) - Notification.Metric.MetricValue: correct the transfer parameter text. - CarExtender, TvExtender, WearableExtender: restore the Java examples in the type remarks. - BubbleMetadata.AutoExpandBubble: replace the 'See also:' summary. - Action.SemanticAction: state that the value is not checked. - Notification.HasPromotableCharacteristics and Flags: match the source. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The restored wearable notification example omits a notification channel ID, preventing it from displaying notifications for apps targeting API 26 or later on Android 8.0+.
1 open issue
What changed in this PR
This documentation-only PR corrects eight issues across seven Android.App notification reference files, restoring examples and clarifying API behavior.
Changes:
- Restore Java examples for wearable, Android TV, and Android Auto notification extensions.
- Clarify JNI reference handling, semantic action values, and bubble auto-expansion.
- Correct descriptions of notification flags and promoted ongoing eligibility.
| File | Description |
|---|---|
docs/xml/Android.App/Notification+WearableExtender.xml |
Restores notification creation and extension-reading examples. |
docs/xml/Android.App/Notification+TvExtender.xml |
Restores the TV extension example. |
docs/xml/Android.App/Notification+Metric+MetricValue.xml |
Clarifies JNI reference release and peer registration. |
docs/xml/Android.App/Notification+CarExtender.xml |
Restores the car extension example. |
docs/xml/Android.App/Notification+BubbleMetadata.xml |
Replaces an uninformative auto-expansion summary. |
docs/xml/Android.App/Notification+Action.xml |
Clarifies that semantic action values may lack public enum members. |
docs/xml/Android.App/Notification.xml |
Corrects flag and promotion eligibility descriptions. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
@dalexsoto review |
|
In response to @jonathanpeppers's request: I checked all seven changed patches and confirmed the notification-channel example fix. My remaining reviewer coverage gap—not a reported PR defect—is verification of the cited API 37.2 Notification.java contracts (Flags 895–919, SemanticAction 2146–2603, promotability 3749–3764, and extender examples 16463–17785), plus the pinned dotnet/android@9bc18c75 Object.cs:110–118 and JNIEnv.cs:360–393 ownership behavior. Those source ranges are not yet inspected, so this review remains queued for the next scheduled pass; no blocking issue was found in the patches inspected. |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed all seven changed XML files against the pinned API 37.2 notification sources and JNI ownership implementation. The restored extender examples use a created notification channel, the semantic-action wording matches unchecked integer values, and the transfer text covers reference release and peer registration. No blocking issues found.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
d9638cb9268ad950601bdfe196e69ce3f2de5d55↑ All seven changed XML files parse; encoding and CRLF are preserved; no new placeholders; diff checks pass.
↑ Gemini reviews found no problems.
↑ Fresh Copilot review recommends approval on this head; its channel finding is resolved.
↓ OpenPublishing.Build and human review are pending.
↑ Notification.java:5125-5137 requires a previously created channel and deprecates the constructor used in the restored examples.
Pass-3 documentation review of item R110: 42 files in
docs/xml/Android.App(theNotificationtypes). Only text that changed in86f7744a1..origin/mainwas reviewed. 824 blocks (2453 channels) were checked; 8 errors were fixed.Fixes
Notification+Metric+MetricValue.xml#ctor(IntPtr, JniHandleOwnership)transfertransferselects deletion of the incoming reference and peer registration. Wording as in #1941.Object.cs:110-118,JNIEnv.cs:360-393Notification+CarExtender.xmlNotification+TvExtender.xmlNotification+WearableExtender.xmlNotification+BubbleMetadata.xmlAutoExpandBubblesummarygetAutoExpandBubble()@returnNotification+Action.xmlSemanticActionvalueSemanticActionmember. The int is not checked, and@SystemApivalues 11 and 12 exist for notification assistant services.Notification.xmlHasPromotableCharacteristicsvalueNotification.xmlFlagsvalueflagsfield holds every@NotificationFlagsvalue.Uncertain findings
None.
Checks
git diff --checkis clean. NoTo be addedplaceholders added. Line endings and encoding are unchanged.index.xml,_filter.xmlorFrameworksIndex.{@link}orClass#membertext remains in the reviewed prose.api-versions.xml(API 37.2).